class Order {
  int? id;
  String? createdAt;
  String? updatedAt;
  String? phone;
  int? channelId;
  int? loanProductId;
  int? loanAmount;
  int? loanPeriodId;
  int? loanType;
  String? loanNum;
  int? status;

  Order(
      {this.id,
        this.createdAt,
        this.updatedAt,
        this.phone,
        this.channelId,
        this.loanProductId,
        this.loanAmount,
        this.loanPeriodId,
        this.loanType,
        this.loanNum,
        this.status});

  Order.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    createdAt = json['created_at'];
    updatedAt = json['updated_at'];
    phone = json['phone'];
    channelId = json['channel_id'];
    loanProductId = json['loan_product_id'];
    loanAmount = json['loan_amount'];
    loanPeriodId = json['loan_period_id'];
    loanType = json['loan_type'];
    loanNum = json['loan_num'];
    status = json['status'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['created_at'] = this.createdAt;
    data['updated_at'] = this.updatedAt;
    data['phone'] = this.phone;
    data['channel_id'] = this.channelId;
    data['loan_product_id'] = this.loanProductId;
    data['loan_amount'] = this.loanAmount;
    data['loan_period_id'] = this.loanPeriodId;
    data['loan_type'] = this.loanType;
    data['loan_num'] = this.loanNum;
    data['status'] = this.status;
    return data;
  }
}
